fix: retry provisioning and add IPv6, bucket policy, hostUsers - #233
Merged
Conversation
Transient RustFS admin/S3 and Kubernetes failures now requeue instead of failing Tenant provisioning (#232). Tenant spec.network and dual-stack binds cover IPv6 (#182). Bucket anonymous access and ConfigMap policies land on the CRD (#200). spec.hostUsers and OpenShift hostUsers:false complete restricted-v3 (#206). Distinct-disk erasure (#162) and a separate data-plane operator (#218) are documented as out of scope. Co-authored-by: RustFS <hello@rustfs.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Related Issues
hostUserswork — fixed)Summary of Changes
I triaged every open issue on this repository and only implemented the ones that are real operator bugs or in-scope CRD features.
#232 Provisioning retry. Transient RustFS admin/S3 and Kubernetes failures (network errors, 408/429/425/5xx, TLS-not-ready) now mark items
Pendingand requeue after 10s instead of writingFailedand waiting for an unrelated spec change. Permanent 4xx and configuration errors still fail andawait_change(). Users that reference a still-pending spec policy stayPendingrather thanUserPolicyNotFound. Adversarial review tightened “resource absent” detection so a 5xx/429 proxy page containing “Not Found” is not treated as a missing user, policy, or bucket policy.#182 IPv6. Operator/STS/Console sockets bind
::then fall back to0.0.0.0, withOPERATOR_BIND_ADDRESS/CONSOLE_BIND_ADDRESSoverrides. Tenantspec.networksets ServiceipFamilyPolicy/ipFamiliesand switchesRUSTFS_ADDRESSto[::]:portwhen IPv6 or dual-stack is requested. Helmnetwork.*and*.bindAddresscover chart-managed Services and process binds.#200 Bucket access policy.
spec.buckets[].anonymouscanned policies (Private|Download|Upload|Public) andpolicy.configMapKeyRefcustom JSON. CEL plus reconcile reject mixing a custom policy with non-Private anonymous access. ConfigMap references are indexed so Tenant reconcile wakes on policy ConfigMap changes.#206 OpenShift
restricted-v3. ClusterRole finalizer RBAC was already present. This change adds Tenantspec.hostUsersand setshostUsers: falseon chart Deployments whenopenshift.enabled=true, plus the OpenShift empty security-context default for generated Tenant pods.#162 / #218. Not operator bugs. Distinct physical disks are a RustFS node topology requirement; a separate data-plane operator is out of scope because this controller already provisions policies, users, and buckets onto the Tenant cluster. User-guide notes added; issues already labeled
invalid.Checklist
make pre-commit(fmt-check + clippy + test + console-lint + console-fmt-check)[Unreleased](if user-visible change)Impact
CRD additive fields:
spec.hostUsers,spec.network,spec.buckets[].anonymous,spec.buckets[].policy. Existing Tenants keep IPv4 listen addresses and private buckets. Helm adds optionalnetworkand bind-address values.Verification
Local result:
pre-commit: all checks passed.GitHub CI on
750602a: Test and Lint succeeded; Skip Duplicate Actions succeeded; Docker Build skipped (workflow condition).Targeted coverage added for:
NoSuchBucketPolicyas absent; 503 + “Not Found” body stays transienthostUsers: falsevs default omitAdditional Notes
Adversarial pass after the first implementation found that
body_mentions_not_foundwas applied to every non-success status. A 503 HTML page containing “Not Found” would have been treated as a missing bucket policy or user. Absence is now limited to 404 and non-retryable 4xx semantic codes.Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.